from flask import Flask, render_template, request, jsonify

app = Flask(__name__)

@app.route('/')
@app.route('/index')
def index():
    return render_template('index.html')


@app.route('/recvData')
def recvData():
    data = request.args.get('send_data')
    print('后端收到的数据->', data)
    return jsonify('后端收到的数据->%s' % data)

if __name__ == '__main__':
    app.run(debug=True)
